package com.example.administrator.zhongyichou.net.presentor;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface RequestAPI {
//    @FormUrlEncoded
//    @POST()
//    Observable<ResponseBody> getRequest(@Url String url, @Field("data") String data);
    @FormUrlEncoded
    @POST("api.php")
    Observable<ResponseBody> getRequest(@FieldMap Map<String ,String> map);
}
